import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './utils/permission.js'
import {
  Button,
  Form,
  Input,
  Icon,
  Checkbox,
  message,
  Spin,
  Layout,
  Menu,
  Avatar,
  Breadcrumb,
  Table,
  Tag,
  Divider,
  Popconfirm,
  Pagination,
  ConfigProvider,
  Modal,
  FormModel,
  Select,
  Card,
  Tree,
  Cascader,
  Upload,
  Drawer
} from 'ant-design-vue';

import Viser from 'viser-vue'
Vue.use(Viser)

Vue.config.productionTip = false
Vue.use(Button)
Vue.use(Form)
Vue.use(Input)
Vue.use(Icon)
Vue.use(Checkbox)
Vue.use(Spin)
Vue.use(Layout)
Vue.use(Menu)
Vue.use(Avatar)
Vue.use(Breadcrumb)
Vue.use(Table)
Vue.use(Tag)
Vue.use(Divider)
Vue.use(Popconfirm)
Vue.use(Pagination)
Vue.use(ConfigProvider)
Vue.use(Modal)
Vue.use(FormModel)
Vue.use(Select)
Vue.use(Card)
Vue.use(Tree)
Vue.use(Cascader)
Vue.use(Upload)
Vue.use(Drawer)

Vue.prototype.$message = message;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
